]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
NMWirelessDialog: fix removing access points
authorGiovanni Campagna <gcampagna@src.gnome.org>
Wed, 29 Jan 2014 21:29:58 +0000 (22:29 +0100)
committerGiovanni Campagna <gcampagna@src.gnome.org>
Tue, 4 Feb 2014 21:24:00 +0000 (22:24 +0100)
We must destroy the actor, not the item, because the latter doesn't
have a destroy() method.

https://bugzilla.gnome.org/show_bug.cgi?id=709128

js/ui/status/network.js

index 3dc694e1547d3eed93d2fb5ef6baf64e1605005b..ab67e820f20356c7642ecc531fdab71f95cacc2e 100644 (file)
@@ -957,7 +957,7 @@ const NMWirelessDialog = new Lang.Class({
         network.accessPoints.splice(res.ap, 1);
 
         if (network.accessPoints.length == 0) {
-            network.item.destroy();
+            network.item.actor.destroy();
             this._networks.splice(res.network, 1);
         } else {
             network.item.updateBestAP(network.accessPoints[0]);